<span class="{$relation['friend_id']}-relation">
{if $relation['status'] == 0}
<a href="javascript:void(0);" data-action="addFollow" data-params="{$relation['friend_id']}" class="relation-box">{lang add_follow}</a>
{elseif $relation['status'] == 1}
<a href="javascript:void(0);" data-action="removeFollow" data-params="{$relation['friend_id']}" class="relation-box">
	{if $is_shop}
	<span class="view">{lang already_collect}</span>
	<span class="action">{lang cancel_collect}</span>
	{else}
	<span class="view">{lang already_followed}</span>
	<span class="action">{lang cancel_follow}</span>
	{/if}
</a>
{elseif $relation['status'] == 2}
<a href="javascript:void(0);" data-action="addFollow" data-params="{$relation['friend_id']}" class="relation-box">
	{if $is_shop}
	<span class="view">{lang he_follow_you}</span>
	<span class="action">{lang collect_goodshop}</span>
	{else}
	<span class="view">{lang he_follow_you}</span>
	<span class="action">{lang add_follow}</span>
	{/if}
</a>
{elseif $relation['status'] == 3}
<a href="javascript:void(0);" data-action="removeFollow" data-params="{$relation['friend_id']}" class="relation-box">
	<span class="view">{lang follow_together}</span>
	<span class="action">{lang cancel_follow}</span>
</a>
{else}
<a href="javascript:void(0);" class="relation-box">
	{lang myself}
</a>
{/if}
</span>